package com.leo.springbootmultithreadbasic.synchronizedkey.synchronizedcodeblock.synchronizedclass;

/**
 * @author Leo
 * @version V1.0
 */
public class MyThread extends Thread {

    private MyService myService;

    public MyThread(MyService myService) {
        this.myService = myService;
    }


    @Override
    public void run() {
        myService.test1();
    }
}
